import { httpDelete, httpGet, httpPost, httpPut } from "@/utils/http";
// 查询团队
export function searchTeam(data?: object) {
    return httpPost('/teams/search', data)
}
// 解散队伍
export function deleteTeam(data: object) {
    return httpDelete('/teams/remove', data)
}
// 新增队伍
export function addTeamApi(data: object) {
    return httpPost('/teams/add', data)
}
// 查询机构
export function searchOrganizationApi(data?: object) {
    return httpPost('/organizations/search', data)
}
// 获取团队详情
export function getTeamDetailApi(data: object) {
    return httpGet('/teams/detail', data)
}

// 获取医生详情
export function getDoctorDetailApi(data: object) {
    return httpGet('/doctors/detail', data)
}
// 获取一个服务包详情
export function getPackDetailApi(data: object) {
    return httpGet('/servicePacks/detail', data)
}

// 修改团队信息

export function updateTeamApi(data: object) {
    return httpPut('/teams/update', data)
}

// 加入某个团队
export function applyTeamApi(data: object) {
    return httpPost('/teamApply/add', data)
}

// 处理入队申请
export function updateApplyTeamApi(data: object) {
    return httpPut('/teamApply/update', data)
}

// 获取入队申请
export function getApplyTeamApi(data: object) {
    return httpGet('/teamApply/getByTeam', data)
}